//
//  XYMessageController.swift
//  WeiboSourceCode
//
//  Created by 周星宇 on 15/12/26.
//  Copyright © 2015年 cn.weibo. All rights reserved.
//

import UIKit

class XYMessageController: XYBaseController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if login == false {
            
            let visitorViewModel = XYVisitorViewModel()
            visitorViewModel.icon = "visitordiscover_image_message"
            visitorViewModel.text = "登陆后，别人评论你的微博,给你发消息，都会在这里收到通知"
            (view as! XYVisitorView).visitorViewModel = visitorViewModel
            return
        }
        
        setUpNav()
    }
    private func setUpNav() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "写私信", action: "didClickWriteBtn", target: self)
    }
    @objc private func didClickWriteBtn() {
        
        
        
    }
}
